# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=cointop
pkgver=1.6.10
pkgrel=0
pkgdesc="TUI application for tracking cryptocurrencies"
url="https://github.com/cointop-sh/cointop"
arch="all"
license="Apache-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/cointop-sh/cointop/archive/refs/tags/v$pkgver.tar.gz"

build() {
	go build -v -o bin/$pkgname -ldflags "-X github.com/cointop-sh/cointop/cointop.version=v$pkgver"
}

check() {
	go test ./...
}

package() {
	install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
223225fe61f46ba51e12bf37108ea86ad3131edbc48317f08ef6cfcc5b4d225ed148996f6f0ca9eedea3c2d4b3f63b52b1d174f72712558618b734437b36f9f6  cointop-1.6.10.tar.gz
"
